{% if bookmarks %}
  <ul class="bookmarks">
    {% for bookmark in bookmarks %}
    {% load bookmarks_filters %}
      <li>
        <a href="{{ bookmark.link.url|escape }}" class="title">
          {{ bookmark.title|escape|capitalize }}</a>
        {% if show_edit %}
          <a href="/save/?url={{ bookmark.link.url|urlencode }}"
            class="edit">[edit]</a>
        {% endif %}
        <br />
        {% if show_tags %}
          Tags:
          {% if bookmark.tag_set.all %}
            <ul class="tags">
            {% for tag in bookmark.tag_set.all %}
              <li><a href="/tag/{{ tag.name|urlencode }}/">
                {{ tag.name|escape }}</a></li>
            {% endfor %}
            </ul>
          {% else %}
            None.
          {% endif %}
          <br />


        {% endif %}
        {% if show_user %}
          Posted by: 
          <a href="/user/{{ bookmark.user.username }}/" 
          class="username">
            {{ bookmark.user.username }}</a>
        {% endif %}
      </li>
    {% endfor %}
  </ul>
  {% if show_paginator %}
    <div class="paginator">
      {% if has_prev %}
        <a href="?page={{ prev_page }}">&laquo; Previous</a>
      {% endif %}
      {% if has_next %}
        <a href="?page={{ next_page }}">Next &raquo;</a>
      {% endif %}
      (Page {{ page }} of {{ pages }})
    </div>
  {% endif %}

{% else %}
  <p>No bookmarks found.</p>
{% endif %}